﻿@model Jb.Web.ViewModels.ContentViewModel
@using Jb.Web.Utility;
@using Jb.Common.Extensions;

@{
	String pageTitle = Model == null ? "Content Details" : Model.Title.HtmlEncode();
    ViewBag.Title = Html.GetPageTitle(pageTitle);
}

<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    @*<div>Enter necessary information and then click the Save button.</div>*@
</div>

<div class="jb-page-content">
    @if (Model == null) {
        @Html.WarningMessageBox("Sorry! The requested content was not found.")
    }
    else {
        @Html.Raw(WebUtil.FormatData(Model.Description))
    }    
</div>